package com.easonji.attendance.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 补卡状态
 * </p>
 *
 * @author easonji
 * @since 2018-10-05
 */

@TableName("att_record_state")

public class RecordState extends Model<RecordState> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "res_id", type = IdType.AUTO)
    private Integer resId;

    @TableField("res_record")
    private Integer resRecord;

    @TableField("res_state")
    private Integer resState;

    @TableField("res_datetime")
    private Date resDatetime;

    @TableField("res_auditor")
    private Integer resAuditor;

    @TableField("res_opinion")
    private String resOpinion;

    @TableField("res_post")
    private Integer resPost;

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }
    public Integer getResRecord() {
        return resRecord;
    }

    public void setResRecord(Integer resRecord) {
        this.resRecord = resRecord;
    }
    public Integer getResState() {
        return resState;
    }

    public void setResState(Integer resState) {
        this.resState = resState;
    }
    public Date getResDatetime() {
        return resDatetime;
    }

    public void setResDatetime(Date resDatetime) {
        this.resDatetime = resDatetime;
    }
    public Integer getResAuditor() {
        return resAuditor;
    }

    public void setResAuditor(Integer resAuditor) {
        this.resAuditor = resAuditor;
    }
    public String getResOpinion() {
        return resOpinion;
    }

    public void setResOpinion(String resOpinion) {
        this.resOpinion = resOpinion;
    }
    public Integer getResPost() {
        return resPost;
    }

    public void setResPost(Integer resPost) {
        this.resPost = resPost;
    }

    @Override
    protected Serializable pkVal() {
        return this.resId;
    }

    @Override
    public String toString() {
        return "RecordState{" +
        "resId=" + resId +
        ", resLeave=" + resRecord +
        ", resState=" + resState +
        ", resDatetime=" + resDatetime +
        ", resAuditor=" + resAuditor +
        ", resOpinion=" + resOpinion +
        ", resPost=" + resPost +
        "}";
    }
}
